package com.example.dahua.singleton;

/**
 * @author: dangwen
 * @createDate: 2021/7/3
 * 懒汉式
 */
public class Singleton02 {
    private static Singleton02 singleton02 = null;
    private Singleton02(){}
    public static Singleton02 getSingleton02(){
        if (singleton02 == null){
            singleton02 = new Singleton02();
        }
        return singleton02;
    }
}
